all:	$(subst .cpp,.o,$(wildcard *.cpp))

FLAGS=--std=c++11 -fopenmp

%.o: %.cpp
	g++ $< -o $@ $(FLAGS)

clean: $(wildcard *.cpp)
	rm $(subst .cpp,.o,$?)